home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / kip / glob.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-17  |  2.1 KB  |  57 lines

  1. /*
  2.  *  AppleTalk / Ethernet gateway globals.
  3.  *
  4.  *  (c) 1984, Stanford Univ. SUMEX project.
  5.  *  May be used but not sold without permission.
  6.  *
  7.  *  (c) 1986, Kinetics, Inc.
  8.  *  May be used but not sold without permission.
  9.  *
  10.  *  $Header: glob.h,v 4.1 88/11/01 19:49:02 sw0l Locked $
  11.  */
  12.  
  13. struct ifnet ifie;        /* interface struct, intel ethernet */
  14. struct ifnet ifab;        /* interface struct, applebus */
  15. struct ifnet ifet;        /* interface struct, ethertalk */
  16. struct ifnet *ifnet;        /* head of ifnet list */
  17. struct ifnet *source_if;    /* source ifnet of current packet */
  18. struct ifnet *porttoif[MAX_PORT]; /* port # to ifnet struct mapping table */
  19.  
  20. struct conf conf;        /* site configuration parameters */
  21. iaddr_t ipnet;            /* major IP net number */
  22. short ipid;            /* next value in ip_id field */
  23.  
  24. struct DDP ddp;            /* last ddp unpacked by abreceive */
  25. struct LAP lap;            /* last lap */
  26. struct DDPS ddps;        /* last short ddp */
  27. short wasddp;            /* true if ddp, else ddps */
  28.  
  29. u_char atnode;            /* gateway's AppleTalk node number */
  30. u_char etheraddr[6];        /* our Ethernet address */
  31. struct pqueue *pq;        /* main received packet queue */
  32. struct pqueue *sendq;        /* ethernet send queue */
  33. struct pqueue nbpq;        /* NBP BrRq's waiting for transmission */
  34. u_short in_cksum();
  35.  
  36. #ifdef SEAGATE
  37. #define    msclock    (*(long *)0x278)    /* ms clock */
  38. #endif
  39. #ifdef KINETICS
  40. int msclock;
  41. struct fp_promram pvars;    /* the addresses of some prom variables */
  42. struct fp_table *table_ptr;    /* pointer to PROM routines' jump table */
  43. struct pbuf *bufs;        /* beginning of the pbuf structs */
  44. int topram;            /* highest ram address available to us */
  45. #endif
  46.  
  47. struct aroute aroute[NAROUTE];    /* AppleTalk route table */
  48. short arouteinit;        /* have read initial route table from AA */
  49. short aroutecore;        /* I am a core gateway */
  50. u_char *azone[NAZONE];        /* pointers to zone names */
  51. u_char azonenames[128];        /* zone names space, pascal strings */
  52. short azoneinit;        /* have read initial zone table from AA */
  53. struct ipdad ipdad[NIPDAD];    /* IP dynamic address table */
  54. struct stats stats;        /* misc dropped packet statistics */
  55. u_char allzones;        /* index of magic "global" zone */
  56.  
  57.